package com.huluobo.a2107monthdemo.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.huluobo.a2107monthdemo.login.UserBean

/**
 *  Created by LC on 2023/11/29.
 */
@Dao
interface UserInfoDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertUserInfo(userBean: UserBean)

    @Query("select * from user_info where id=:userId")
    fun queryUserInfo(userId:Int):UserBean
}